package com.csx.base.design.structure.bridge;

/**
 * @author cuisongxu
 * @date 2022/9/24 12:11
 */
public class Client {

    public static void main(String[] args) {

        // 白色画笔与多种图形的组合
        new WhitePen(new CircleRuler()).draw();
        new WhitePen(new SquareRuler()).draw();
        new WhitePen(new TriangleRuler()).draw();

        // 黑色画笔与多种图形的组合
        new BlackPen(new CircleRuler()).draw();
        new BlackPen(new SquareRuler()).draw();
        new BlackPen(new TriangleRuler()).draw();

    }
}
